<% form_for(@bug) do |f| %>
    <%= f.error_messages %>

    <p>
      <%= f.label :defect_id %><br/>
      <%= f.text_field :defect_id %>
    </p>
    <p>
      <%= f.label :type %><br/>
      <%= f.text_field :defect_type %>
    </p>
    <p>
      <%= f.label :priority %><br/>
      <%= f.text_field :priority %>
    </p>
    <p>
      <%= f.label :summary %><br/>
      <%= f.text_area :summary %>
    </p>
    <p>
      <%= f.label :developer %><br/>
      <%= collection_select(:bug, :developer_id, Member.all, :id, :nickname, :include_blank => true) %>
    </p>
    <p>
      <%= f.label :status %><br/>
      <%= select(:bug, :status, [['Yet to start', 'Yet to start'], ['Working on it', 'Working on it'], ['Code review, please!', 'Code review, please!'], ['Ready for build', 'Ready for build'], ['Not a issue', 'Not a issue'], ['Closed as not an issue', 'Closed as not an issue'], ['Considered already fixed', 'Considered already fixed'], ['Done', 'Done']]) %>
    </p>
    <p>
      <%= f.label :release %><br/>
      <%= collection_select(:bug, :release_id, Release.all, :id, :release_number, :include_blank => true) %>
    </p>
    <p>
      <%= f.submit 'Save' %>
    </p>
<% end %>
